package com.dashang.rebatecenter.util.json;

import java.util.Map;

public class JsonData extends JsonObject {

    private int total;

    private Map data;
    
    private Object page;

    public JsonData() {
        this.success = true;
    }

    public JsonData(Map data) {
        this.data = data;
        this.success = true;
    }
    
    public JsonData(Map data,Object page) {
        this.data = data;
        this.success = true;
        this.page = page;
    }

    public JsonData(String message) {
        this.message = message;
        this.success = true;
    }

    public JsonData(Map data, int total) {
        this.data = data;
        this.total = total;
        this.success = true;
    }

    public JsonData(Map data, String message) {
        this.data = data;
        this.message = message;
        this.success = true;
    }

    public JsonData(String code, String message) {
        this.code = code;
        this.message = message;
        this.success = true;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public Map getData() {
        return data;
    }

    public void setData(Map data) {
        this.data = data;
    }

	public Object getPage() {
		return page;
	}

	public void setPage(Object page) {
		this.page = page;
	}

}
